import request from '@/utils/request'

export function getRefundAddressList (params:any) {
    return request({
        url: 'store.refund_address/list',
        method: 'GET',
        params
    })
}

export function getRefundAddressSelect () {
    return request({
        url: 'store.refund_address/select',
        method: 'GET'
    })
}

export function createRefundAddress (data:any) {
    return request({
        url: 'store.refund_address/create',
        method: 'POST',
        data
    })
}
export function updateRefundAddress (data:any) {
    return request({
        url: `store.refund_address/update`,
        method: 'PUT',
        data
    })
}
export function delRefundAddress (data:{id:number|string}) {
    return request({
        url: `store.refund_address/delete`,
        method: 'DELETE',
        data
    })
}

export function getRefundAddressDetail (params:{id:number|string}) {
    return request({
        url: `store.refund_address/detail`,
        method: 'GET',
        params
    })
}